<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>手风琴</title>
		<style type="text/css">
			* {
				margin: 0;
				padding: 0;
			}
			.box{
				width: 960px;
				height: 300px;
				margin: 0 auto;
			}
			ul{
				width: 960px;; 
				height: 300px;
				margin: 0 auto;
				overflow: hidden;
			}
			ul li{
				width: 160px;
				height: 300px;
				list-style: none;
				float: left;
				
				transition: width 2s;
			}
			ul li img{
				height: 300px;
			}
			ul:hover li{
				width: 108px;
			}
			ul li:hover{
				width: 420px;
			}
		</style>
	</head>
	<body>
		<div class="box">
			<ul>
				<li><img src="../img/food-1.jpg" alt=""></li>
				<li><img src="../img/food-2.jpg" alt=""></li>
				<li><img src="../img/food-3.jpg" alt=""></li>
				<li><img src="../img/food-4.jpg" alt=""></li>
				<li><img src="../img/food-5.jpg" alt=""></li>
				<li><img src="../img/food-6.jpg" alt=""></li>
			</ul>
		</div>
	</body>
</html>
